import { TableColumnObject } from 'amis/lib/renderers/Table'
import baseEnumColumnUtils, { BaseEnumColumnUtilsProp } from '@/components/amis/common/BaseEnumColumnUtils/baseEnumColumnUtils'
import IamAccountEventRecordEventTypeEnum from '@/core/account/generated/enums/IamAccountEventRecordEventTypeEnum'
import lodash from 'lodash'

class IamAccountEventRecordTypeColumnUtils {
	getSchema = (parmas?: Partial<BaseEnumColumnUtilsProp>): TableColumnObject => {
		const mergeSchema = lodash.merge(
			{
				name: 'eventType',
				label: '事件类型',
				baseEnum: IamAccountEventRecordEventTypeEnum,
			},
			parmas,
		)
		return baseEnumColumnUtils.getSchema(mergeSchema)
	}
}

export default new IamAccountEventRecordTypeColumnUtils()
